<?php
class ResultConfig {

	public $id;

	public $type;

	public $src;
	
	public $params;

	public function toXml(){
		$outXml = "<result id=\"{$this->id}\" type=\"{$this->type}\" src=\"{$this->src}\">";

		foreach($this->params as $key => $value){
			$outXml .= "<param name=\"$key\" value=\"$value\"/>";
		}

		$outXml .= "</result>";
	}
}

